var express = require('express')
var Router = express.Router()

var OperationOfDatabase=require('../databaseManage/OperationOfDatabase')
var db=new OperationOfDatabase();

 
Router.get('/', function (req, res) {
   //var data=JSON.parse(req.query[0])
   // console.log(req.body);;
   var post_title=req.query.post_title;
   var page=req.query.page;
   page=parseInt(page)*10;
   db.getCommentsByPostTitle(post_title,page,10,res);
   // res.send('<h1>服务器端响应了register功能</h1>')
})
module.exports = Router;